<template>
  <div class="list-view">
    测试页面业务逻辑
  </div>
</template>

<script setup lang="ts">

defineOptions({
  name: "TestView",
  components: {}
});


import { useTestStore } from "../store/testStore";

const dataEvent = (data: any) => {
  console.log("子组件收到数据了", data);
}

defineExpose({
  dataEvent
})

// 2. 实例化组合式 store
const testStore = useTestStore();

// 验证存储结果
console.log("存储后 Pinia 中的值：", testStore.sendTestCmd);  

</script>

<style lang="scss" scoped>
.list-view {
  padding: 12px;
}
</style>
